package photorganizer.common.transaction;

import com.db4o.ObjectContainer;

public class Db4oTransactionManager extends TransactionManagerAbstract {

	private final ObjectContainer objectContainer;

	public Db4oTransactionManager(ObjectContainer objectContainer) {
		this.objectContainer = objectContainer;
	}

	@Override
	protected void doCommit() {
		objectContainer.commit();
	}

	@Override
	protected void doRollback() {
		objectContainer.rollback();
	}

}
